package com.fs.ibox.pojo;

import java.util.Date;


/**
 * 订单记录实体类
 */
public class Orders {
    private Integer id;
    private String ordersId;   //订单号
    //private Integer oState;     //订单状态
    private String  usernameBy; //买方账号
    private String usernameSell;//卖方账号
    private Double oprice;  //购买价格
    private String cname;   //藏品名称
    private String cimg;    //藏品图片路径
    private Date ordertime;
    public Orders() {
    }

    public Orders(Integer id, String ordersId, String usernameBy, String usernameSell, Double oprice, String cname, String cimg) {
        this.id = id;
        this.ordersId = ordersId;
        this.usernameBy = usernameBy;
        this.usernameSell = usernameSell;
        this.oprice = oprice;
        this.cname = cname;
        this.cimg = cimg;
    }

    public Orders(Integer id, String ordersId, String usernameBy, String usernameSell, Double oprice, String cname, String cimg, Date ordertime) {
        this.id = id;
        this.ordersId = ordersId;
        this.usernameBy = usernameBy;
        this.usernameSell = usernameSell;
        this.oprice = oprice;
        this.cname = cname;
        this.cimg = cimg;
        this.ordertime = ordertime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId;
    }

    public String getUsernameBy() {
        return usernameBy;
    }

    public void setUsernameBy(String usernameBy) {
        this.usernameBy = usernameBy;
    }

    public String getUsernameSell() {
        return usernameSell;
    }

    public void setUsernameSell(String usernameSell) {
        this.usernameSell = usernameSell;
    }

    public Double getOprice() {
        return oprice;
    }

    public void setOprice(Double oprice) {
        this.oprice = oprice;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCimg() {
        return cimg;
    }

    public void setCimg(String cimg) {
        this.cimg = cimg;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", ordersId='" + ordersId + '\'' +
                ", usernameBy='" + usernameBy + '\'' +
                ", usernameSell='" + usernameSell + '\'' +
                ", oprice=" + oprice +
                ", cname='" + cname + '\'' +
                ", cimg='" + cimg + '\'' +
                '}';
    }
}
